.clearfix {
  *zoom: 1;
}

.clearfix:before, .clearfix:after {
  display: table;
  content: "";
  line-height: 0
}

.clearfix:after {
  clear: both
}

.hide-text {
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0
}

.input-block-level {
  display: block;
  width: 100%;
  min-height: 30px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box
}

.md-editor {
  display: block;
  > .md-header {
    height: 24px;
  }
}

.md-editor>.md-header, .md-editor .md-footer {
  display: block;
  padding: 6px 1px;
  background: #e5e6ea;
}

.md-editor>.md-preview {
  background: #FFF;
  border-top: 1px dashed #BBB;
  border-bottom: none;
  min-height: 10px;
  padding: 6px
}

.md-editor > textarea {
  outline: none;
  margin: 0;
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px dashed #ddd;
  border-radius: 0;
  background-color: transparent;
  padding: 6px 0;
}

.md-editor>textarea:focus {
  box-shadow: none;
}

.md-editor.active {
  border-color: #999;
  outline: none;
  -webkit-transition: border linear .2s, box-shadow linear .2s;
  -moz-transition: border linear .2s, box-shadow linear .2s;
  -o-transition: border linear .2s, box-shadow linear .2s;
  transition: border linear .2s, box-shadow linear .2s
}

.md-btn-group {
  margin-right: 6px;
  display: inline-block;
  height: 30px;
  .md-btn, .md-btn-preview {
    border: 1px solid #BBB;
    float: left;
    padding: 0 .5em;
    height: 24px;
    line-height: 24px;
    font-size: 12px;
    > * {
      line-height: 24px;
    }
    margin-left: -1px;
    &:focus{
      outline: none;
    }
    &:hover{
      cursor: pointer;
    }
  }
  .md-btn{
    background-color: #EEE;
    &:hover{
      background-color: #FAFAFA;
    }
  }
  .md-btn-preview{
    background-color: #eba322;
    border-color: #eba322;
    color: #FFF;
    line-height: 21px;
    &:hover{
      background-color: #e9892d;
      border-color: #e9892d;
    }
  }
  .md-btn:disabled{
    color: #888;
    &:hover{
      background-color: #EEE;
      cursor: not-allowed;
    }
  }
}

.md-header{
  i{
    display: inline-block;
    width: 24px;
    height: 24px;
  }
  .icon-bold{
    background: url("../img/bold.png") no-repeat center center;
  }
  .icon-italic{
    background: url("../img/italic.png") no-repeat center center;
  }
  .icon-header{
    background: url("../img/heading.png") no-repeat center center;
  }
  .icon-link{
    background: url("../img/link.png") no-repeat center center;
  }
  .icon-picture{
    background: url("../img/image.png") no-repeat center center;
  }
  .icon-list{
    background: url("../img/list.png") no-repeat center center;
  }
  .md-btn{
    font-size: 0;
  }
  .md-btn-preview{
    font-size: inherit;
    font-size: 12px;
    i{
      display: none;
    }
  }
}